﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using MyWords;
namespace MyWords
{
    public partial class Form1 : Form
    {
        public CurrentUser user;

        public Form1()
        {
            InitializeComponent();
        }

        public Form1(CurrentUser currentUser)
        {
            this.user = currentUser;
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            //MessageBox.Show(user.username);
            Recite recite = new Recite(user);
            //调用类成员函数Show()来显示窗口
            recite.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Marked marked = new Marked(user);
            //调用类成员函数Show()来显示窗口
            marked.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Test test = new Test(user);
            //调用类成员函数Show()来显示窗口
            test.Show();
        }
    }
}
